
<div id="user-comments">Posted Comments on: <?php echo $this->data; ?></div>
<?php 
$this->dojo()->enable();

 ?>
<div id ="comments">
<?php foreach($this->paginator as $list) {
	
 echo "<i>" .$list['username']. " said " . "on ". $list['date_entered']. " :"  ."</i>";
 echo "<p></p>";
 echo "<div id=user-comment>" .$list['comments'];
 echo "<br>";
 $del = $this->url(array("module"=>"community", "controller"=>"ratecourse", "action"=>"deletecomment", "id"=>$list['id']));
 $msg = "<a href=$del>Delete this comment</a>";
 if (Zend_Auth::getInstance()->hasIdentity()){
 	 $identity =Zend_Auth::getInstance()->getIdentity();
 if ($identity->role == 'admin'){
 	 echo"$msg";
 }    
 }
 echo "</div>";
}
  ?> 
 </div>
<?php echo '<br>' .$this->paginationControl($this->paginatior, 'Sliding', 'pagination.phtml' ); ?>